package cn.edu.nju.software.managers;

import java.sql.SQLException;
import java.util.ArrayList;

import cn.edu.nju.software.beans.AccountBean;
import cn.edu.nju.software.beans.CidSidBean;
import cn.edu.nju.software.beans.CourseBean;
import cn.edu.nju.software.beans.StudentBean;

public class Main {
	
	public static void main(String[] args){
		
		//CourseBean csb = new CourseBean("1","2","3","4",5,6,"7",true);
		
		//ArrayList<CourseBean> csBeans = new ArrayList<CourseBean>();
		//csBeans.add(csb);
		
//		ArrayList<String> sids = new ArrayList<String>();
//		sids.add("002");
//		ArrayList<StudentBean> sbs = new ArrayList<StudentBean>();
//		StudentBean sb = new StudentBean("003", "lichuanyi", "man", "A");
//		sbs.add(sb);
//		sb = new StudentBean("002", "lichuanyi", "man", "A");
//		sbs.add(sb);
		
//		ArrayList<AccountBean> abs = new ArrayList<AccountBean>();
//		AccountBean ab = new AccountBean("aaa", "aaa", "002");
//		abs.add(ab);
//		ab = new AccountBean("bbb", "bbb", "003");
//		abs.add(ab);
		ArrayList<CidSidBean> csbs = new ArrayList<CidSidBean>();
		CidSidBean csb = new CidSidBean("001", "001");
		csbs.add(csb);
		try {
			CourseStudentTManage.giveUpCourse(csbs);
			//AccountTManage.changePassword("bbb", "bbb", "ccc");
			//AccountTManage.deleteAccount(sids);
//			sbs = StudentTManage.getStudents(sids);
//			for(StudentBean sb:sbs){
//				System.out.println(sb.getId());
//			}
//			csBeans = CourseTManage.getSharedCourses();
//			for(CourseBean cb : csBeans){
//				System.out.println(cb.getId());
//			}
//			csBeans = CourseTManage.getAllCourses();
//			for(CourseBean cb : csBeans){
//				System.out.println(cb.getId());
//			}
			
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
